package org.cn.leroy.util;

import java.io.Serializable;

/**
 * Created by Leroy on 2016/11/13.
 */
public class PageTemplet implements Serializable {
    private int offset = 0;
    private int length = 10;
    private int total = 0;
    private int page = 1;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public PageTemplet(int offset, int length) {
        this.offset = offset;
        this.length = length;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
